#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class Date
{
public:
	friend ostream& operator<<(ostream& out, const Date& d1);
	Date(int year=1, int month=1, int day=1)
		:_year(year),
		_month(month),
		_day(day)
	{
		_count++;
	}
	static int GetCount()
	{
		return _count;
	}
private:
	int _year;
	int _month;
	int _day;
	static int _count;
};
int Date::_count = 0;
ostream& operator<<(ostream& out, const Date& d1)
{
	out << d1._year << "-" << d1._month << "-" << d1._day << endl;
	return out;
}
int main()
{
	Date d1;
	Date d2;
	Date d3;
	Date d4;
	Date d5;
	cout<<Date::GetCount()<<endl;

}